package net.zoneland.zrdp.biz.domain.pojo.form;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 创建阅办参数对象.
 *
 * @version v1.0
 */
@Data
public class CreateReadsForm implements Serializable {

    private static final long serialVersionUID = 5674786169986154602L;

    // 不能为空提示.
    private static final String NOT_BLANK_MESSAGE = "：不能为空";

    /** 流程编号. **/
    @NotBlank(message = "流程编号" + NOT_BLANK_MESSAGE)
    private String piid;

    /** 工单号. **/
    @NotBlank(message = "工单号" + NOT_BLANK_MESSAGE)
    private String applyId;

    /** 工单标题. **/
    @NotBlank(message = "工单标题" + NOT_BLANK_MESSAGE)
    private String applyTitle;

    /** 当前节点名称. **/
    @NotBlank(message = "当前节点名称" + NOT_BLANK_MESSAGE)
    private String sysNodeName;

    /** 当前节点编码. **/
    @NotBlank(message = "当前节点编码" + NOT_BLANK_MESSAGE)
    private String sysNodeId;

    /** 下一环节处理人. **/
    @Valid
    @NotNull(message = "下一环节处理人" + NOT_BLANK_MESSAGE)
    private List<UserInfoForm> handlers;

    /** 当前环节扩展参数. **/
    private Map<String, String> extendData;
}
